package com.sls.mall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sls.mall.common.utils.PageUtils;
import com.sls.mall.member.entity.MemberEntity;
import com.sls.mall.member.exception.PhoneExsitException;
import com.sls.mall.member.exception.UsernameExistException;
import com.sls.mall.member.vo.MemberLoginVO;
import com.sls.mall.member.vo.MemberRegistVO;

import java.util.Map;

/**
 * 
 *
 * @author tg
 * @email tg@gmail.com
 * @date 2021-04-24 16:44:04
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVO memberRegistVo);

    void checkUsernameUnique(String userName) throws UsernameExistException;

    void checkPhoneUnique(String phone) throws PhoneExsitException;

    MemberEntity login(MemberLoginVO memberLoginVO);
}

